import request from "@/until/axios";
import cook from "./cook";
export const alldishes = (params) =>
    request({
        method: "get",
        url: cook.cook.alldishes,
        params,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        }
    });
export const dishescollection = (data) =>
    request({
        method: "post",
        url: cook.cook.dishescollection,
        data,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        }
    });
export const disheslike = (data) =>
    request({
        method: "post",
        url: cook.cook.disheslike,
        data,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        }
    });
export const dishesdetail = (params) =>
    request({
        method: "get",
        url: cook.cook.dishesdetail + '/' + params.id,
        params,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        }
    });
export const dishesmine = () =>
    request({
        method: "get",
        url: cook.cook.dishesmine,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        }
    });

